<template>
  <div>
    <div class="card-header">
        <span>{{title}}</span>
        <i class="el-icon-info"></i>
    </div>
    <div class="card-content">{{count}}</div>
    <div class="card-charts">
        <slot name="charts"></slot>
    </div>
    <div class="card-footer">
        <slot name="footer"></slot>
    </div>
  </div>
</template>

<script>
export default {
    props: ['title','count']
};
</script>

<style scoped>
.card-header{
    display: flex;
    justify-content: space-between;
    color: #d9d9d9;
}
.card-content{
    font-size: 30px;
    padding: 10px 0;
}
.card-charts{
    margin-top: 10px;
    height: 50px;
    font-size: 14px;
}
.card-footer{
    border-top: 1px solid #eee;
    padding-top: 10px;
    font-size: 14px;
}
</style>